<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  // 获取虚拟目录
  String path = request.getContextPath();
  // url:               协议                       主机                        端口号             虚拟目录
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  String mainPage = request.getParameter("mainPage");
  if (mainPage == null || mainPage.equals("")){
    mainPage = "default.jsp";
  }else if (mainPage.equals("addNews")){
    mainPage = "add_news.jsp";
  }else if (mainPage.equals("other")){
    mainPage = "default.jsp";
  }else if (mainPage.equals("updNews")){
    mainPage = "update_news.jsp";
  }else if (mainPage.equals("personall")){
    mainPage = "PersonAll.jsp";
  }else if (mainPage.equals("addperson")){
    mainPage = "add_person.jsp";
  }else if (mainPage.equals("updPerson")){
    mainPage = "update_person.jsp";
  }
%>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>新闻发布系统</title>
    <link rel="stylesheet" href="CSS/style.css">
  </head>
  <body>
    <div id="top"><%@ include file="top.jsp" %></div>
    <div id="left"><%@ include file="left.jsp" %></div>
    <div id="default"><jsp:include page="<%=mainPage%>" ></jsp:include></div>
    <div id="end"><%@ include file="end.jsp" %></div>


    <!--图片漂浮-->
    <DIV id="adu19" width="159" style="Z-index:10;LEFT: 0px; POSITION: absolute; TOP: 0px">
      <iframe frameborder="0" src="about:blank" style="position:absolute;Z-index:-1;width:100%;height:100%;top:0;left:0;scrolling:no;filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"></iframe>
      <TABLE cellspacing="0" cellpadding="0" border="0">
        <TBODY>

        <TR align="center">
          <TD align="left"><A href="#" target="_blank" title="" onclick="_addDynClicks('wbimage',1610908521,46229)"><img src="images/hy.jpg" width="300" height="75" border="0"></A></TD>
        </TR>

        <TR>
          <TD align="right" style="padding-top:1px"><table border="0" cellpadding="10" cellspacing="0"><tr><td style="background-color:#f5f5f5;padding:1px"><a href="javascript:showimagecloseu19();" class="closestyle253283">关闭</a></td></tr></table></TD>
        </TR>


        </TBODY>
      </TABLE>
    </DIV>

    <SCRIPT>
      function showimagecloseu19()
      {
        var obju19=document.getElementById("adu19");
        obju19.style.display = 'none';
      };
      //水平             //上下

      var xu19 = 0;yu19 = 0;

      var xinu19 = true; yinu19 = true;
      var stepu19 = 1;

      var delayu19 = 88;

      var obju19=document.getElementById("adu19");
      var bdyu19 = document.body;
      if (document.compatMode && document.compatMode != "BackCompat")
        bdyu19 = document.documentElement;
      else
        bdyu19 = document.body;
      function floatADu19()
      {
        var bdy_scrollTop = document.body.scrollTop | document.documentElement.scrollTop;
        var Lu19=Tu19=0;
        var Ru19= bdyu19.clientWidth-obju19.offsetWidth;
        var Bu19 = bdyu19.clientHeight-obju19.offsetHeight;
        obju19.style.left = xu19 + bdyu19.scrollLeft+"px";
        obju19.style.top = yu19 + bdy_scrollTop+"px";
        xu19 = xu19 + stepu19*(xinu19?1:-1);
        if(xu19 < Lu19)
        {
          xinu19 = true;
          xu19 = Lu19;
        }
        if(xu19 > Ru19)
        {
          xinu19 = false;
          xu19 = Ru19;
        }
        yu19 = yu19 + stepu19*(yinu19?1:-1);
        if(yu19 < Tu19)
        {
          yinu19 = true;
          yu19 = Tu19;
        }
        if(yu19 > Bu19)
        {
          yinu19 = false;
          yu19 = Bu19;
        }
      }
      var itlu19;
      if(window.navigator.userAgent.indexOf("MSIE")>=1)
      {
        window.attachEvent('onload', adftu19);
      }
      else
      {
        window.addEventListener('load',adftu19, false);
      }
      function adftu19()
      {
        itlu19 = setInterval("floatADu19()", delayu19);
      }
      obju19.onmouseover=function(){clearInterval(itlu19);};
      obju19.onmouseout=function(){itlu19=setInterval("floatADu19()", delayu19)};
    </SCRIPT>
  </body>
</html>